import Vue from 'vue'
import VueRouter from 'vue-router'

//引入登录注册 模块
import Reg from '../views/Reg/Reg.vue'
import Login from '../views/Login/Login.vue'
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect: '/reg'
  },
    { 
      path: '/reg',
      component: Reg 
    },
    { 
      path: '/login',
      component: Login 
    }
  
]

const router = new VueRouter({
  routes
})

export default router
